<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
	include_once("conexao.php");
	
	if(isset($_GET['idveiculo'])){
			$idveiculo = $_GET['idveiculo'];
			$query = "DELETE FROM aluguel WHERE veiculo =".$idveiculo;
			$query2 = "DELETE FROM veiculo WHERE idveiculo =".$idveiculo;
			$sql = mysql_query($query) or die(mysql_error());
			$sql = mysql_query($query2) or die(mysql_error());
			echo "sucesso";
		}
?>
